package mapper;

import com.root.health.bean.MedicationInfo;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;
import java.util.List;

@Mapper
public interface MedicationMapper {

    public void medication(String medName, Timestamp medicationTime, String medicationDose, String medicationAlert, long medicationDone,long userid);
    //服药信息添加
    public List<MedicationInfo> selectmedication(long userid);
    //服药信息查询
    public MedicationInfo selectmedicationByMedicationId(long medicationid);
    //服药信息查询
    public void medicationDel(long medicationid);
    //服药信息删除
    public void medicationUpd(Timestamp medicationTime, String medicationDose, String medicationAlert, long medicationDone, long medicationId);
    //服药信息修改
    public void medicationDone(long medicationId);
    //服药信息完成
    public Integer medicationCheck(String medName, Timestamp medicationTime, String medicationDose, String medicationAlert, long medicationDone,long userid);
    //服药信息校验
}
